From 65925cbf24830052bdb00abbbf551e03bd8edf12 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 22 May 2006 09:42:37 +0000 Subject: [PATCH] * (bug 5511) Fix URL-encoding of usernames in links on Special:Ipblocklist --- RELEASE-NOTES | 1 + includes/SpecialIpblocklist.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f320c38fe9..862b450a8c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -311,6 +311,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Big update to Swedish localisation (sv) * Use appropriate HTML functions to create the tool links on image pages, so they don't look garbled when tidy isn't on +* (bug 5511) Fix URL-encoding of usernames in links on Special:Ipblocklist == Compatibility == diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index f533192019..8c43aebd64 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -224,7 +224,7 @@ class IPUnblockForm { $target = '#' . $block->mId; # Hide the IP addresses of auto-blocks; privacy } else { $target = $sk->makeLinkObj( Title::makeTitle( NS_USER, $block->mAddress ), $block->mAddress ); - $target .= ' (' . $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions' ), $msg['contribslink'], 'target=' . $block->mAddress ) . ')'; + $target .= ' (' . $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions' ), $msg['contribslink'], 'target=' . urlencode( $block->mAddress ) ) . ')'; } # Prep the address for the unblock link, masking autoblocks as before -- 2.20.1